home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / POSTSCPT / VIEWER / GSVIEW.ZIP / gsview / gvpm.inf (.txt) < prev    next >
Encoding:
OS/2 Help File  |  1996-01-16  |  55.0 KB  |  1,594 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Overview ΓòÉΓòÉΓòÉ
  3.  
  4. PM GSview is a graphical interface for OS/2 Ghostscript. Ghostscript is an 
  5. interpreter for the PostScript page description language used by laser 
  6. printers. For documents following the Adobe PostScript Document Structuring 
  7. Conventions, GSview allows selected pages to be viewed or printed. GSview 
  8. should be used with Ghostscript 3.53 or later. GSview was inspired by Tim 
  9. Theisen's X11 Ghostview program. 
  10.  
  11.       Installation 
  12.       Document Structuring Conventions 
  13.       Opening a Document 
  14.       Page Selection 
  15.       Zoom 
  16.       Document Information 
  17.       Printing 
  18.       Text Extract and Find 
  19.       Clipboard 
  20.       Options 
  21.       Page Orientation 
  22.       Page Size and Display Resolution 
  23.       Keys 
  24.       Command line options 
  25.       World Wide Web 
  26.       Copyright 
  27.       Common Problems 
  28.       Whats new 
  29.       Internals 
  30.  
  31.  
  32. ΓòÉΓòÉΓòÉ 2. Installation ΓòÉΓòÉΓòÉ
  33.  
  34. It is recommended that you use the installation program for installing GSview. 
  35. For OS/2, use os2setup.exe.  For MS-Windows, use winsetup.exe.  See the file 
  36. README.GV for more details. 
  37.  
  38. If you wish to install GSview manually, see the Manual Installation topic. 
  39.  
  40.       Uninstalling GSview and Ghostscript 
  41.       Manual Installation 
  42.       Ghostscript Installation 
  43.       Portable Document Format 
  44.       Include Path 
  45.       Fonts 
  46.  
  47.  
  48. ΓòÉΓòÉΓòÉ 2.1. Uninstalling GSview and Ghostscript ΓòÉΓòÉΓòÉ
  49.  
  50. To uninstall GSview, remove all the files in the gsview directory. To uninstall 
  51. Ghostscript, remove all the files in the gs3.53 directory. 
  52.  
  53. Also remove 
  54.  
  55.  c:\os2\gvpm.ini
  56.  
  57. from the appropriate system directory. 
  58.  
  59. Remove the GSview program object from the desktop. 
  60.  
  61.  
  62. ΓòÉΓòÉΓòÉ 2.2. Manual Installation ΓòÉΓòÉΓòÉ
  63.  
  64. It is recommended that you use the installation program for installing GSview. 
  65. The following instructions describe how to install GSview without using the 
  66. installation program. 
  67.  
  68. First you need to install Ghostscript 3.12 or later. This version of GSview 
  69. will not work with earlier versions of Ghostscript. Ghostscript 3.53 or later 
  70. is preferred. 
  71.  
  72. Make a directory d:\gsview. 
  73.  
  74. Next install PM GSview by copying gvpm.exe and gvpm.hlp to the d:\gsview 
  75. directory. 
  76.  
  77. Start GSview then select Options | Configure Ghostscript. 
  78.  
  79. Enter the correct executable path for Ghostscript. For example 
  80.  
  81.   c:\gs3.53\gsos2.exe
  82.  
  83. Enter the correct Ghostscript include path into the Ghostscript Include Path 
  84. field. This include path must include the directories where the Ghostscript 
  85. library files (gs_*.ps and Fontmap) and the Ghostscript fonts (*.gsf) are 
  86. located. For example: 
  87.  
  88.   c:\gs3.53;c:\gs3.53\fonts;c:\psfonts
  89.  
  90. Do NOT put a -I before the include path. 
  91.  
  92. Leave the Other Options field empty. 
  93.  
  94. If you do not get the Ghostscript EXE field correct, GSview will not be able to 
  95. load Ghostscript. If you do not get the Ghostscript Include Path correct, 
  96. Ghostscript will immediately exit with an error code. 
  97.  
  98. Set the environment variable TEMP to point to a directory for temporary files. 
  99. For example: 
  100.  
  101.   SET TEMP=c:\temp
  102.  
  103. The directory must exist and must be writeable. 
  104.  
  105. If you have some Type 1 fonts on your system, it may be possible to tell 
  106. Ghostscript to use them.  See Fontmap.os2 and Fontmap.atm supplied with 
  107. Ghostscript for examples.  See the Fonts topic. 
  108.  
  109. If you have problems, try reading the help topic Common Problems. 
  110.  
  111.  
  112. ΓòÉΓòÉΓòÉ 2.3. Ghostscript Installation ΓòÉΓòÉΓòÉ
  113.  
  114. The following describes how to install Ghostscript, not GSview. The primary 
  115. documentation on installing Ghostscript is found in the Ghostscript file 
  116. use.doc. 
  117.  
  118. Aladdin Ghostscript for the PC is available on the Internet from 
  119.  
  120.  ftp://ftp.cs.wisc.edu/ghost/aladdin/gsNNNxxx.zip
  121.  
  122. Where NNN is the version number. For Ghostscript 3.53, the files required to 
  123. run Ghostscript are: 
  124.  
  125.  gs353ini.zip
  126.  
  127. plus one or more of 
  128.  
  129.  gs353dos.zip   (MS-DOS 386 EXE)
  130.  gs353os2.zip   (OS/2 2.0 or later EXE)
  131.  gs353win.zip   (MS-Windows 3.1 16bit EXE)
  132.  gs353w32.zip   (MS-Windows 3.1/Win32s or MS-Windows 95 or NT EXE)
  133.  
  134. If you do not already have a set of Type 1 fonts, you will also need 
  135.  
  136.  gs353fn1.zip
  137.  
  138. The following assumes that Ghostscript is to be installed on drive d:. Unzip 
  139. the INI zip file and the required EXE zip files from the root directory.  This 
  140. should put the files into the directory d:\gs3.53. 
  141.  
  142. If you also need the fonts, change to the d:\gs3.53 directory and then unzip 
  143. gs353fn1.zip.  This will put font files into .\fonts. To run Ghostscript, set 
  144. the GS_LIB environment variable as follows 
  145.  
  146.  SET GS_LIB=d:\gs3.53;d:\gs3.53\fonts
  147.  
  148. then start the appropriate EXE.  To run Ghostscript without using the 
  149. environment variable, use the following command 
  150.  
  151.  d:\gs3.53\gs -Id:\gs3.53;d:\gs3.53\fonts
  152.  
  153. where the EXE name needs to be replaced with the appropriate name (gs, gs386, 
  154. gswin, gswin32 or gsos2). 
  155.  
  156. If you already have some Type 1 fonts, there are two ways to tell Ghostscript 
  157. about these fonts: editing/replacing the Fontmap file, or the GS_FONTPATH 
  158. environment variable.  See the Ghostscript use.doc and the sample Fontmap files 
  159. for details. 
  160.  
  161. See the Include Path and Fonts topics for more details. 
  162.  
  163.  
  164. ΓòÉΓòÉΓòÉ 2.4. Portable Document Format ΓòÉΓòÉΓòÉ
  165.  
  166.  GSview can display PDF files, although there are a number of problems with the 
  167. current method.  To enable display of PDF files with Aladdin Ghostscript 3.33, 
  168. copy the file pdf2dsc.ps from the GSview src directory (unzip src.zip) to the 
  169. Ghostscript directory. With Aladdin Ghostscript 3.53 you do not need to do this 
  170. because this file is distributed with Aladdin Ghostscript 3.53. When you open a 
  171. PDF file, GSview will start up Ghostscript and using pdf2dsc.ps will create a 
  172. temporary DSC file which will contain commands to display pages of the PDF 
  173. file.  GSview will then start Ghostscript a second time to actually display the 
  174. PDF file. 
  175.  
  176. Known problems with the current implemtentation are: 
  177.  
  178. - For long PDF files, GSview will take a long time to scan the PDF file. Be 
  179. patient. 
  180.  
  181. - Ghostscript is used twice, firstly to scan the PDF file, then a second time 
  182. to display the PDF file.  These two passes makes it take even longer. The 
  183. GSview PDF code should eventually be rewritten to avoid using the temporary DSC 
  184. file so that only one pass is needed. 
  185.  
  186. - Zoom doesn't work for PDF files.  Attempting to use it will probably cause 
  187. GSview to crash with an out of memory error. 
  188.  
  189. - Doesn't sense if PDF file has been changed during display. 
  190.  
  191.  
  192. ΓòÉΓòÉΓòÉ 2.5. Include Path ΓòÉΓòÉΓòÉ
  193.  
  194. Ghostscript needs to read some initialisation files during startup, and needs 
  195. to read font files before drawing text. When used on a PC, it is normal to tell 
  196. Ghostscript where to find these files using the Ghostscript -I command line 
  197. switch. Alternatively, the GS_LIB environment variable can be used. See below 
  198. for details for Unix or VMS. 
  199.  
  200. The -I switch or GS_LIB environment variable contains a list of directories to 
  201. search for the required initialisation files. On a PC, it is normal to put the 
  202. initialisation files in the same directory as the Ghostscript program.  If 
  203. Ghostscript is in c:\gs, then -Ic:\gs would be used as a command line option to 
  204. Ghostscript. 
  205.  
  206. Ghostscript also needs to find font files.  The list of fonts known to 
  207. Ghostscript is contained in the Fontmap file.  The directories which contain 
  208. these fonts should be added to the -I switch. If the Ghostscript *.gsf fonts 
  209. are in c:\gs\fonts, and some other *.pfb fonts are in c:\psfonts, then 
  210. -Ic:\gs;c:\gs\fonts;c:\psfonts would be used as a command line option to 
  211. Ghostscript on a PC. 
  212.  
  213. Under Unix or VMS with Ghostview, the include path should have been configured 
  214. when Ghostscript was compiled. If not,  and Ghostview is being used, use the 
  215. GS_LIB environment variable instead of -I. The Ghostscript include files are 
  216. generally not put in the same directory as the executable under Unix.  Instead 
  217. the executable might be in 
  218.  
  219.  /usr/local/bin
  220.  
  221. while the include files are in 
  222.  
  223.  /usr/local/lib/ghostscript/gs3.53
  224.  
  225. and the fonts in 
  226.  
  227.  /usr/local/lib/ghostscript/fonts
  228.  
  229. Consequently, the GS_LIB environment variable would need to be set to 
  230.  
  231.  /usr/local/lib/ghostscript/gs3.53:/usr/local/lib/ghostscript/fonts
  232.  
  233. It is to be hoped that these were set as the default when Ghostscript was 
  234. compiled, and that it is unnecessary to use GS_LIB. 
  235.  
  236. For more information, see the following topic. 
  237.  
  238.       File searching 
  239.  
  240.  
  241. ΓòÉΓòÉΓòÉ 2.5.1. File searching ΓòÉΓòÉΓòÉ
  242.  
  243. (from Ghostscript use.doc) 
  244.  
  245. When looking for the initialisation files (gs_*.ps), the files related to fonts 
  246. (Fontmap, *.pfa, *.pfb, *.gsf), or the file for the 'run' operator, Ghostscript 
  247. first checks whether the file name specifies an explicit directory or drive 
  248. (i.e., doesn't begin with '/' on Unix systems; doesn't contain a ':' or begin 
  249. with a '/' or '\' on MS-DOS systems; doesn't contain a ':' or a square bracket 
  250. on VMS systems).  If it does, Ghostscript simply tries to open the file using 
  251. the given name.  Otherwise, Ghostscript will try directories in the following 
  252. order: 
  253.  
  254. 1. The directory/ies specified by the -I switch(es) in the command line (see 
  255. below), if any; 
  256.  
  257. 2. The directory/ies specified by the GS_LIB environment variable, if any; 
  258.  
  259. 3. The directory/ies specified by the GS_LIB_DEFAULT macro in the Ghostscript 
  260. makefile, if any. 
  261.  
  262. Each of these (GS_LIB_DEFAULT, GS_LIB, and -I parameter) may be either a single 
  263. directory, or a list of directories separated by a character appropriate for 
  264. the operating system (':' on Unix systems, ';' on VMS systems, ';' on MS-DOS 
  265. systems). Ghostscript 3.12 use.doc states that: 
  266.  
  267.  Note that Ghostscript does *not* attempt to open the file
  268.  in the current directory.  This is consistent with common
  269.  practice on Unix, but it is different from the usual
  270.  practice on MS-DOS.
  271.  
  272. This is incorrect.  Ghostscript does search in the current directory. 
  273.  
  274.  
  275. ΓòÉΓòÉΓòÉ 2.6. Fonts ΓòÉΓòÉΓòÉ
  276.  
  277. Ghostscript locates fonts in two ways: 
  278.  
  279. 1. Those listed explicitly in Fontmap 
  280.  
  281. 2. Font files found in directories listed in the GS_FONTPATH environment 
  282. variable. 
  283.  
  284. Those listed in the Fontmap file should be locatable on the Ghostscript include 
  285. path, or should have fully qualified paths.  Note that you must use / or \\ and 
  286. must not use \ within a directory name. 
  287.  
  288. Ghostscript comes with a number of free fonts, most with a .gsf extension. 
  289. These are ordinary Type 1 fonts (although they cannot be used with Adobe Type 
  290. Manager).  The Ghostscript fonts can be broken into three main classes: 
  291.  
  292. 1. Type 1 outline fonts with hinting (most *.pfa).  These produce good quality 
  293. output.  The standard Fontmap file uses these in preference to the other font 
  294. types.  There are relatively few of these fonts. 
  295.  
  296. 2. Type 1 outline fonts that have been created from bitmap fonts (p*.gsf, 
  297. z*.gsf, etc.).  These produce poor quality output. Avoid them if at all 
  298. possible. A full set of the common 35 PostScript fonts is available. 
  299.  
  300. 3. Type 1 stroked fonts created from the public domain Hershey fonts (h*.gsf, 
  301. h*.pfa).  These produce moderate quality output, but do not correspond to 
  302. standard PostScript fonts. 
  303.  
  304. If you have some other Type 1 outline fonts (*.pfa, *.pfb), it is possible to 
  305. use these with Ghostscript.  Whether or not you are allowed to do this depends 
  306. on the font licence.  If you do use these fonts with Ghostscript, it is your 
  307. responsibility to make sure that the font licence permits this use. To use the 
  308. other Type 1 fonts, you will need to replace or edit the Fontmap file.  The 
  309. reason for using these other Type 1 fonts is that they are almost certainly of 
  310. better quality than the Type 1 bitmap derived fonts supplied with Ghostscript. 
  311. However, good quality fonts are not usually free. 
  312.  
  313.       Fontmap 
  314.       GS_FONTPATH 
  315.       Platform Fonts 
  316.  
  317.  
  318. ΓòÉΓòÉΓòÉ 2.6.1. Fontmap ΓòÉΓòÉΓòÉ
  319.  
  320. The Fontmap file tells Ghostscript what fonts are available and where to find 
  321. them. Each line in Fontmap may be one of the following: 
  322.  
  323. 1. A comment.  These are lines that start with a % 
  324.  
  325.    % fontmap aka Fontmap - standard font catalog for Ghostscript.
  326.  
  327. 2. A font name and file name.  For example 
  328.  
  329.    /Courier                (ncrr.pfa)      ;
  330.    /Courier-Italic         (ncrri.pfa)     ;
  331.  
  332. The first of these lines says that the font name Courier is to be found in the 
  333. file ncrr.pfa. The file ncrr.pfa must contain a font named Courier. If the name 
  334. is not Courier then a font alias must be used. This is described later. Note 
  335. that the file name is a PostScript string and so \ has a special meaning. If 
  336. ncrr.pfa was in the c:\gs\fonts directory, you would need to have c:\gs\fonts 
  337. as one of the directories listed in the include path, or you would need to use 
  338. the file name (c:/gs/fonts/ncrr.pfa) or (c:\\gs\\fonts\\ncrr.pfa).  Using / is 
  339. preferred to \\. 
  340.  
  341. 3. A font alias. For example 
  342.  
  343.    /Courier-Oblique                /Courier-Italic         ;
  344.  
  345. This tells Ghostscript that if Courier-Oblique is requested, Courier-Italic is 
  346. to be used instead. The standard Fontmap file uses aliases to replace poor 
  347. quality bitmap-derived fonts with good quality hinted outline fonts. 
  348. Ghostscript has a bitmap derived version of the Helvetica font in the file 
  349. phvr.gsf.  The Fontmap file could instruct Ghostscript to use this with the 
  350. following line: 
  351.  
  352.    /Helvetica                      (phvr.gsf)      ;
  353.  
  354. However, the NimbusSansL-Regular font looks like Helvetica and is a better 
  355. quality font, so the default Fontmap file actually uses 
  356.  
  357.    /Helvetica                      /NimbusSansL-Regular    ;
  358.    /NimbusSansL-Regular            (n019003l.gsf)  ;
  359.  
  360. A description of the required formatting for each line is near the top of each 
  361. Fontmap file. 
  362.  
  363. Ghostscript comes with a number of alternate Fontmap files. These include 
  364.  
  365.  Fontmap        The standard fontmap file
  366.  Fontmap.ATB    For Adobe Type Basics (65 Type 1 fonts)
  367.  Fontmap.ATM    For Adobe Type Manager (13 fonts)
  368.  Fontmap.OS2    For Type 1 fonts shipped with OS/2 (13 fonts)
  369.  Fontmap.OSF    For DEC OSF/1 systems
  370.  Fontmap.Ult    For DEC Ultrix systems
  371.  Fontmap.VMS    For VAX/VMS systems with DECwindows/Motif
  372.  
  373. If you want to use one of the alternate Fontmap files, the procedure is as 
  374. follows: 
  375.  
  376. 1. Copy Fontmap to Fontmap.old 
  377.  
  378. 2. Copy Fontmap.??? (your selected Fontmap file) to Fontmap 
  379.  
  380. 3. Add the directory that contains the Type 1 fonts to the include path (-I or 
  381. GS_LIB) 
  382.  
  383.  
  384. ΓòÉΓòÉΓòÉ 2.6.2. GS_FONTPATH ΓòÉΓòÉΓòÉ
  385.  
  386. (From Ghostscript use.doc) 
  387.  
  388. When Ghostscript starts up, it also looks at the GS_FONTPATH environment 
  389. variable, which is also a list of directories.  It goes to those directories 
  390. and looks for all files that appear to contain PostScript fonts; it then 
  391. effectively adds all those files and fonts to its internal copy of the Fontmap 
  392. (the catalog of fonts and the files that contain them).  If you are using one 
  393. of the following types of computer, you may wish to set GS_FONTPATH to the 
  394. indicated value so that Ghostscript will automatically acquire all the 
  395. installed Type 1 fonts: 
  396.  
  397.    System type             GS_FONTPATH
  398.    -----------             -----------
  399.    AIX                     /usr/lpp/DPS/fonts/outlines
  400.    NeXT                    /NextLibrary/Fonts/outline
  401.    OSF/1                   /usr/lib/X11/fonts/Type1Adobe
  402.    Silicon Graphics        /usr/lib/DPS/outline/base
  403.    Sun (Solaris 2.3)       /usr/openwin/lib/X11/fonts/Type1/outline
  404.    Ultrix                  /usr/lib/DPS/outline/decwin
  405.  
  406. See also Fontmap. 
  407.  
  408.  
  409. ΓòÉΓòÉΓòÉ 2.6.3. Platform Fonts ΓòÉΓòÉΓòÉ
  410.  
  411. Platform fonts are described in Ghostscript fonts.doc. 
  412.  
  413. The bitmap derived fonts used by Ghostscript are of poor quality. The computer 
  414. hosting Ghostscript may have the same fonts in better quality versions, either 
  415. as scalable fonts (e.g. Type 1 or TrueType) or as bitmaps. To improve the 
  416. display of documents, Ghostscript can use these platform fonts instead of using 
  417. the low quality fonts. 
  418.  
  419. This can be illustrated with an example.  The default /Helvetica-Bold font is 
  420. phvb.gsf, an outline font derived from a bitmap.  When the /Helvetica-Bold font 
  421. is requested, phvb.gsf is read.  When a character is to be rendered to the 
  422. display, Ghostscript instead asks MS-Windows for the Helvetica-Bold font at the 
  423. appropriate size.  MS-Windows then draws the requested character from the 
  424. TrueType Arial Bold font, and Ghostscript puts it on the display.  The 
  425. resulting output is of better quality than the /Helvetica-Bold bitmap derived 
  426. font. 
  427.  
  428. In another example, the same request for /Helvetica-Bold under Unix/X11 might 
  429. instead display characters using a prebuilt bitmap font if one is available in 
  430. the requested size. 
  431.  
  432. There are some limitations to using Platform fonts. 
  433.  
  434. 1. Platform fonts are only used for upright (Portrait) characters. Rotated 
  435. characters will be displayed using the original PostScript font. 
  436.  
  437. 2. A PostScript version of the required font must be available. This is needed 
  438. to obtain character bounding box information, encoding vector for character 
  439. sets, and drawing rotated characters. 
  440.  
  441. 3. Platform fonts may only used for a limited range of sizes. For example, 
  442. MS-Windows only uses platform fonts for 6 to 36 point fonts. 
  443.  
  444. 4. MS-Windows lies about the available font sizes.  Ghostscript asks for a 
  445. particular font size and MS-Windows returns a font that it claims is the same 
  446. size.  However MS-Windows may instead return a font of a different size that it 
  447. thinks will look better.  Often it looks worse because the intercharacter 
  448. spacing is out of proportion to the character size.  If this happens, platform 
  449. fonts can be disabled by adding -dNOPLATFONTS to the Ghostscript Command Line. 
  450.  
  451. 5. Platform fonts will only be used for the display.  Output to printer devices 
  452. will continue to use the PostScript font. 
  453.  
  454. MS-Windows Ghostscript has a fixed alias table for fonts. In the table below, 
  455. the name on the left is the name of the PostScript font, and the name on the 
  456. right is the name that Ghostscript will try if MS-Windows doesn't know the 
  457. PostScript name. 
  458.  
  459.  Courier         Courier New
  460.  Helvetica       Arial
  461.  Helvetica       Helv
  462.  Times           Times New Roman
  463.  Times           Tms Rmn
  464.  
  465. Platform fonts are not supported under OS/2. 
  466.  
  467. Not yet written: Unix/X11 Ghostscript may have an ability to use Xresources to 
  468. specify font aliases.  If this is the case, then the method should be described 
  469. here. 
  470.  
  471.  
  472. ΓòÉΓòÉΓòÉ 3. Document Structuring Conventions ΓòÉΓòÉΓòÉ
  473.  
  474.   Adobe has defined a set of extended comment conventions that provide 
  475. additional information about the page structure and resource requirements of a 
  476. PostScript file. If a file contains these Document Structuring Convention (DSC) 
  477. comments, GSview can display pages in random order using Goto Page and display 
  478. pages in reverse order using Previous Page.  Selected pages can be extracted to 
  479. another file or printed. 
  480.  
  481. If a file does not contain DSC comments, GSview can only display the pages in 
  482. the original order. 
  483.  
  484. DSC conforming files start with the comment line: 
  485.  
  486.  %!PS-Adobe-3.0
  487.  
  488. where the number 3.0 may change and is the DSC version number. Some programs 
  489. write PostScript files with a control-D as the first character of the file, 
  490. followed by the comment line mentioned above. GSview will correctly report that 
  491. these files are not DSC conforming, but will still display them with page 
  492. selection features available. Complain to the author of the program that 
  493. produced the PostScript file. To make the file DSC conforming, edit it to 
  494. remove the control-D character. 
  495.  
  496. DSC conforming files contain lines such as: 
  497.  
  498.  %%Pages: 24
  499.  %%Page: 1 1
  500.  
  501. These lines tell GSview how many pages a document contains and where they 
  502. start.  GSview uses this information to select individual pages. 
  503.  
  504. Encapsulated PostScript Files (EPSF) are single page documents that contain a 
  505. subset of the DSC comments and PostScript commands. EPS files start with the 
  506. comment line: 
  507.  
  508.  %!PS-Adobe-3.0 EPSF-3.0
  509.  
  510. EPS files are commonly used for inclusion in other documents and for this 
  511. reason require the bounding box comment: 
  512.  
  513.   %%BoundingBox: llx lly urx ury
  514.  
  515. where llx, lly, urx and ury are integers giving the x and y coordinates of the 
  516. lower left and upper right corners of a bounding box which encloses all marks 
  517. made on the page. 
  518.  
  519. Some EPS files contain a preview of the PostScript document. This preview can 
  520. be a Windows Metafile, a TIFF file, or an Interchange preview (EPSI format). 
  521. For the Windows Metafile or TIFF file preview, the EPS file under DOS contains 
  522. a binary header which specifies the location and lengths of the preview and 
  523. PostScript language sections of the EPS file. For the Interchange format, the 
  524. preview is contained in DSC comments starting with 
  525.  
  526.  %%BeginPreview: width height depth lines
  527.  
  528. An EPS file with a preview can be created from an EPS file without a preview 
  529. using Add EPS Preview. 
  530.  
  531.  
  532. ΓòÉΓòÉΓòÉ 4. Opening a Document ΓòÉΓòÉΓòÉ
  533.  
  534.    The Open command on the File menu opens a file and displays the first page. 
  535.  
  536. If the file contains DSC comments, pages can be selected using Next Page, 
  537. Previous Page and Goto Page. 
  538.  
  539. If the file does not contain DSC comments, Previous Page and Goto Page will not 
  540. work.  Another file should not be selected until a last page of the file has 
  541. been displayed. 
  542.  
  543. When a file is open, GSview will display the document filename, the current 
  544. page (if available) and while the cursor is over the image, the location of the 
  545. cursor in coordinates specified by Options | Units.  The coordinate can be 
  546. PostScript points (1/72"), millimetres or inches. The cursor location is useful 
  547. for calculating bounding boxes. 
  548.  
  549. The Select File command is similar to Open but it does not display the 
  550. document. This command is useful for opening a document prior to printing it. 
  551.  
  552. The Save As command saves a copy of the current document. This is useful if 
  553. GSview is being used as a PostScript viewer by another application and you wish 
  554. to save the currently displayed file. 
  555.  
  556. Extract allows a range of pages to be copied from the current document to a new 
  557. document.  For example, ten pages can be extracted from the middle of the 
  558. current document and written to another file, which will later be sent to a 
  559. printer. 
  560.  
  561. The Close command closes the currently open document. This should be used 
  562. before the current file is changed by another program. If you do not do this 
  563. and GSview detects that the file length or date have changed, it will close 
  564. Ghostscript and rescan the document. 
  565.  
  566. See also Print. 
  567.  
  568.       PS to EPS 
  569.  
  570.  
  571. ΓòÉΓòÉΓòÉ 4.1. PS to EPS ΓòÉΓòÉΓòÉ
  572.  
  573. In general, it is not possible to convert a PostScript file to EPS. However, 
  574. many single page PostScript files can be converted to EPS by changing the first 
  575. line of the file to 
  576.  
  577.  %!PS-Adobe-3.0 EPSF-3.0
  578.  
  579. and then adding or fixing up the %%BoundingBox comment. 
  580.  
  581. When used incorrectly, the PS to EPS command can produce PostScript files with 
  582. incorrect DSC comments.  Such a document will cause problems when you try to 
  583. include it inside another document. 
  584.  
  585. To convert a PostScript file to EPS, the original file must be a single page 
  586. document.  If the document contains DSC comments and is multi page, extract the 
  587. desired page with File | Extract. If the document does not contain DSC 
  588. comments, you will need to edit the file by hand to extract the desired page. 
  589.  
  590. EPS documents must not use any of the following operators: 
  591.  
  592.  banddevice   clear         cleardictstack  copypage
  593.  erasepage    exitserver    framedevice     grestoreall
  594.  initclip     initgraphics  initmatrix      quit
  595.  renderbands  setglobal     setpagedevice   setpageparams
  596.  setshared    startjob      letter          note
  597.  legal        a3            a4              a5
  598.  
  599. The following operators should be used with care: 
  600.  
  601.  nulldevice   setgstate     sethalftone    setmatrix
  602.  setscreen    settransfer   setcolortransfer
  603.  
  604. It is your responsibility to make sure that the above requirements are met. 
  605.  
  606. To test if a document contains any of the above operators, select Options | EPS 
  607. Warn and then Open the desired document. After the page has been displayed, 
  608. look in the Ghostscript text window. If any of the above operators have been 
  609. used you should see lines like: 
  610.  
  611.  Warning: EPS files must not use ...
  612.  
  613. If you find these warnings then do not use PS to EPS. Remember to turn off EPS 
  614. Warn afterwards. 
  615.  
  616. A document must be displayed before PS to EPS is used. The document must 
  617. contain a showpage. This is required so that the bounding box can be measured. 
  618.  
  619. For documents without DSC comments, PS to EPS allows a bounding box to be 
  620. specified, then writes out an EPS file consisting of an EPS wrapper around the 
  621. original document. 
  622.  
  623. For documents with DSC comments, PS to EPS will change the first line of the 
  624. file to 
  625.  
  626.  %!PS-Adobe-3.0 EPSF-3.0
  627.  
  628. then allows the %%BoundingBox comment to be changed or added. 
  629.  
  630. For EPS documents, PS to EPS allows the %%BoundingBox comment to be changed. 
  631.  
  632. PS to EPS does not clip the document to the %%BoundingBox. To do so would 
  633. require changing the PostScript code itself. PS to EPS only changes the DSC 
  634. comments. 
  635.  
  636. PS to EPS does not add a preview to a document. If you want a preview you add 
  637. it with Edit | Add EPS Preview after first creating an EPS file with a correct 
  638. %%BoundingBox. 
  639.  
  640. See also Add EPS Preview, Extract, EPS Warn. 
  641.  
  642.  
  643. ΓòÉΓòÉΓòÉ 5. Page Selection ΓòÉΓòÉΓòÉ
  644.  
  645.    View | Next Page or the + button moves to the next page of a document. This 
  646. works even if the document does not contain DSC comments. 
  647.  
  648. View | Previous Page or the - button moves to the previous page. 
  649.  
  650. View | Redisplay redisplays the current page. 
  651.  
  652. View | Goto Page or the pointing hand button shows a dialog box which allows 
  653. selection of the next page number to display. The Select Page dialog box shows 
  654. page labels since these are likely to be more useful than a sequential page 
  655. number. 
  656.  
  657. The Previous Page, Redisplay and Goto Page commands work only if the document 
  658. contains DSC comments. 
  659.  
  660.  
  661. ΓòÉΓòÉΓòÉ 6. Zoom ΓòÉΓòÉΓòÉ
  662.  
  663. To enlarge a displayed feature, position the cross-hair mouse pointer over the 
  664. feature then press the right mouse button. The window will swap from normal 
  665. display resolution to zoom resolution and the status line will have the word 
  666. Zoomed appended to it. The zoomed feature will be in the centre of the window. 
  667. To cancel Zoom, press the right mouse button again or select any command that 
  668. redraws the page (e.g. Redisplay, Next Page). By default the zoom resolution is 
  669. 300 dots per inch but this can be changed with the Media | Zoom Resolution 
  670. command. 
  671.  
  672. Zoom will only work for DSC conforming documents. 
  673.  
  674.  
  675. ΓòÉΓòÉΓòÉ 7. Document Information ΓòÉΓòÉΓòÉ
  676.  
  677. A brief information area at the top of the window is used by GSview to display 
  678. the document filename, the current page number and label (if available) and 
  679. while the cursor is over the image, the location of the cursor in coordinates 
  680. specified by Options | Units. The cursor location is useful for calculating 
  681. bounding boxes. 
  682.  
  683. The Info command on the File menu shows a dialog box with the following 
  684. information about the DSC comments in the current document. 
  685.  
  686. File is the full pathname to the document. 
  687.  
  688. Type is DSC, EPS, No DSC comments or 'Ignoring DSC Comments'. EPS is an 
  689. Encapsulated PostScript File - a single page document that contains a subset of 
  690. the DSC comments and PostScript commands. EPS files are commonly used for 
  691. inclusion in other documents. Ignoring DSC Comments is displayed if Options | 
  692. Ignore DSC is selected. 
  693.  
  694. Title is a text title that can be used when printing banner pages and for 
  695. routing or recognising documents. 
  696.  
  697. Date is the time the document was created. 
  698.  
  699. BoundingBox specifies a box that encloses all the marks painted on the page. 
  700. The four integer values are the coordinates of the lower left and upper right 
  701. corners of the bounding box in default user coordinates (1/72 inch). 
  702.  
  703. Orientation is either Portrait or Landscape. 
  704.  
  705. Default Media gives the media name followed by the width and height of that 
  706. media in default user coordinates (1/72 inch). 
  707.  
  708. Page Order is either Ascending, Descending or Special 
  709.  
  710. Pages is the total number of pages in the document. 
  711.  
  712. Page gives the page label and page number. 
  713.  
  714. Bitmap is the size of the display bitmap in pixels which may be useful if you 
  715. are copying the displayed image to the clipboard. 
  716.  
  717.  
  718. ΓòÉΓòÉΓòÉ 8. Printing ΓòÉΓòÉΓòÉ
  719.  
  720.  The Print command on the File menu allows printing of the document using 
  721. Ghostscript. A Printer Setup dialog box allows selection of the Ghostscript 
  722. printer driver and resolution, the page range and the Spooler output. 
  723.  
  724. All pages, individual pages or any combination may be printed. The All, Odd and 
  725. Even buttons provide quick selection of pages. 
  726.  
  727. This list of available devices and resolutions is stored in the [Devices] 
  728. section of gvpm.ini. The default list of devices and resolutions is taken from 
  729. the standard distribution version of Ghostscript 3.33 and may not be complete. 
  730.  
  731. To print a document without displaying it, open the document using Select File. 
  732.  
  733. Print To File is similar to the Print command except that Ghostscript will 
  734. write the output to a file instead of sending it to a printer. 
  735.  
  736. If you want to produce a bitmap, some useful drivers are bmpmono, bmp16, bmp16m 
  737. and bmp256. 
  738.  
  739. Print File sends a file to a local port, bypassing the Presentation Manager 
  740. printer drivers. This is useful for sending a document to a PostScript printer, 
  741. or for sending an output file produced by Ghostscript to a printer. 
  742.  
  743.       Spooler 
  744.       Properties 
  745.  
  746.  
  747. ΓòÉΓòÉΓòÉ 8.1. Spooler ΓòÉΓòÉΓòÉ
  748.  
  749. The Printer Setup dialog box prompts you for the name of a printer queue to 
  750. which output should be sent. This queue will be saved and will be the default 
  751. selection next time. 
  752.  
  753. See also Print 
  754.  
  755.  
  756. ΓòÉΓòÉΓòÉ 8.2. Properties ΓòÉΓòÉΓòÉ
  757.  
  758. The Printer Setup dialog box has a Properties button which allows some printer 
  759. drivers to configure extra properties and a page offset to be specified. 
  760.  
  761. A page offset can be specified for each printer.  This will only work if 
  762. Ghostscript Version is set to 3.51 or later. The page offset is useful for 
  763. correcting a mismatch between the page origin of a Ghostscript printer device 
  764. and a particular printer. Increasing the X value will translate the image 
  765. towards the right. Increasing the Y value will translate the image downwards. 
  766.  
  767. Properties are typically used to set BitsPerPixel for a colour printer or other 
  768. types of colour or density correction. 
  769.  
  770. Properties are specific to a particular printer.  Changing the value of the 
  771. BitsPerPixel property on one printer does not change it for any other printer. 
  772.  
  773. When you press the OK button in the Properties dialog box, the current settings 
  774. are written to the gvpm.ini file. 
  775.  
  776. No Properties are predefined in GSview.  The Edit and New buttons allow you to 
  777. modify available Properties for that printer. See the Edit Properties topic for 
  778. more details. 
  779.  
  780.       Edit Properties 
  781.  
  782.  
  783. ΓòÉΓòÉΓòÉ 8.2.1. Edit Properties ΓòÉΓòÉΓòÉ
  784.  
  785. Not every printer supports the use of optional Properties.  To find out which 
  786. printers support Properties and which Properties are recognised by each 
  787. printer, read the Ghostscript file devices.doc or look at the Ghostscript 
  788. source code. 
  789.  
  790. There are two ways to add or edit Properties. 
  791.  
  792. The first method uses the Edit or New button on the Properties dialog box. 
  793.  
  794. Each property must be either a number or a string.  Number properties are 
  795. equivalent to the Ghostscript -d command line option.  String properties are 
  796. equivalent to the Ghostscript -s command line option. Each property consists of 
  797. a Name and Value.  These are used as -dNAME=VALUE or -sNAME=VALUE. The Value is 
  798. chosen from the comma separated list of Values entered into the Edit Properties 
  799. dialog box.  Spaces must not be embedded in the Name or Values. 
  800.  
  801. To delete a property, select it on the Properties dialog box, then press Edit, 
  802. then press the Delete button on the Edit Properties dialog box. 
  803.  
  804. The second method is to manually edit the GSview INI file. 
  805.  
  806. For each printer, you must add two sections to the gvpm.ini file. The following 
  807. example shows how to add property information for the cdjcolor driver. First 
  808. add a section which gives the current values. This section, after the first 
  809. character is removed, gives the options that will appear in the Property list 
  810. box. The first character is s for string or d for number. 
  811.  
  812.  [cdjcolor]
  813.  dBitsPerPixel=24
  814.  dDepletion=1
  815.  dShingling=2
  816.  dBlackCorrect=4
  817.  
  818. Next add a section which gives the values to display in the Value list box. 
  819.  
  820.  [cdjcolor values]
  821.  dBitsPerPixel=1,3,8,16,24
  822.  dDepletion=1,2,3
  823.  dShingling=0,1,2
  824.  dBlackCorrect=0,1,2,3,4,5,6,7,8,9
  825.  
  826. GSview will also add the value [Not defined] to the listbox. 
  827.  
  828. When GSview prints a file, it will give Ghostscript the contents of the 
  829. [cdjcolor] section of gvpm.ini as follows: 
  830.  
  831.  -dBitsPerPixel=24 -dDepletion=1 -dShingling=2 -dBlackCorrect=3
  832.  
  833. If the value of a property is [Not defined], that property will not be sent to 
  834. Ghostscript. 
  835.  
  836. Some entries for the cdj family of drivers are supplied in the property.ini 
  837. file that comes with GSview. 
  838.  
  839.  
  840. ΓòÉΓòÉΓòÉ 9. Text Extract and Find ΓòÉΓòÉΓòÉ
  841.  
  842.    In general, extracting text from a PostScript document is not a trivial 
  843. operation.  Words may be broken.  Text may be encoded. Ligatures may be used 
  844. (e.g replacing 'fi' with a single character). There may be no relationship 
  845. between the location of a word in the PostScript file and its location on the 
  846. page. 
  847.  
  848. However, it is common for PostScript documents to contain text in the same 
  849. order as it appears on the page, and for it to be given in PostScript strings, 
  850. surrounded by parentheses.  Complete lines may be given in one string, or one 
  851. word per string.  For this sort of document, extracting text can be done with 
  852. reasonable success. 
  853.  
  854. Edit | Text Extract will extract text contained in strings from specified pages 
  855. and write it to a text file. Line breaks in this text file correspond to lines 
  856. in the document. Spaces in the text file correspond to spaces within strings, 
  857. or to separate strings.  A more effective method of extracting text is to use 
  858. ps2ascii.ps supplied with Ghostscript. 
  859.  
  860. Edit | Find will search for text and display the first page that contains the 
  861. text.  Find asks for a search text and a range of pages in which to search. The 
  862. preceeding comments about extracting text from a PostScript document should be 
  863. noted.  Find first extracts text from the document, then searches it ignoring 
  864. all spaces in both the document and the search text.  Case is ignored when 
  865. searching. Consequently the search text these would match both These and The 
  866. serial.  No information is given about where the word is located on a given 
  867. page because this information is not available without a complete PostScript 
  868. interpreter. 
  869.  
  870. Edit | Find Next will continue the search from the next page. 
  871.  
  872.  
  873. ΓòÉΓòÉΓòÉ 10. Clipboard ΓòÉΓòÉΓòÉ
  874.  
  875.     The GSview window can be copied to the Clipboard as a bitmap by selecting 
  876. Copy from the Edit menu. 
  877.  
  878. An alternative way to get a bitmap output from Ghostscript is to use one of the 
  879. BMP drivers.  See Print. 
  880.  
  881. Paste To copies the currently displayed image (if available) to a BMP file. 
  882.  
  883. Add EPS Preview takes a bitmap from the display and uses it to add a preview to 
  884. an EPS file. Add EPS Preview can create a DOS EPS file with a TIFF preview, or 
  885. an EPSI file with an Interchange preview. To use the Add EPS Preview command 
  886. the following steps must be followed. 
  887.  
  888. 1. Make sure the document has a correct bounding box. A bounding box can be 
  889. added or changed using File | PS to EPS. 
  890.  
  891. 2. Select Orientation | Portrait. 
  892.  
  893. 3. Select Options | EPS Clip. This will cause Ghostscript to use a display 
  894. window the size of the bounding box instead of the page size. 
  895.  
  896. 4. Select Media | Resolution and set a suitable resolution for the preview.  If 
  897. the resolution is too high it make the EPS file excessively large. 
  898.  
  899. 5. Open an EPS file that does not contain a preview. 
  900.  
  901. 6. Select Edit | Add EPS Preview, then the preview format, then the new EPS 
  902. filename.  GSview will write a new file containing the original PostScript EPS 
  903. file and a preview created from the display bitmap. The available preview 
  904. formats are Interchange, TIFF 4 and TIFF 5. If adding an Interchange preview, 
  905. the document must have an %%EndComments line, otherwise GSview may put the 
  906. preview in the wrong place. A TIFF 5 preview is a Class B image with no 
  907. compression as described in Appendix G of the TIFF 5.0 memorandum.  A TIFF 4 
  908. preview is almost identical to the TIFF 5 preview, but avoids using tags which 
  909. are not described in the TIFF 4 specifiation. WordPerfect 5.1 requires a TIFF 4 
  910. preview. 
  911.  
  912. 7. Reset Orientation | Portrait, Options | EPS Clip and Media | Resolution to 
  913. their previous values. 
  914.  
  915. To extract the PostScript or Preview section from a DOS EPS file, use File | 
  916. Select File followed by Edit | Extract EPS then PostScript or Preview. 
  917.  
  918. See also PS to EPS. 
  919.  
  920.  
  921. ΓòÉΓòÉΓòÉ 11. Options ΓòÉΓòÉΓòÉ
  922.  
  923. The Options menu has the following selections: 
  924.  
  925.       Ghostscript Command 
  926.       Ghostscript Version 
  927.       Draw Method 
  928.       Sounds 
  929.       Units 
  930.       Save Settings 
  931.       Safer 
  932.       Save Last Directory 
  933.       Button Bar 
  934.       Fit Window To Page 
  935.       Quick Open 
  936.       Auto Redisplay 
  937.       EPS Clip 
  938.       EPS Warn 
  939.       Ignore DSC 
  940.       Show Bounding Box 
  941.  
  942.  
  943. ΓòÉΓòÉΓòÉ 11.1. Ghostscript Command ΓòÉΓòÉΓòÉ
  944.  
  945. The Ghostscript Command option allows selection of the command to use when 
  946. executing Ghostscript. A default will be constructed using the GSview path and 
  947. will look like: 
  948.  
  949.  gsos2.exe -Ic:\gs;c:\gs\fonts;c:\psfonts
  950.  
  951. GSview will first attempt to find Ghostscript in the GSview directory and then 
  952. will try the PATH. If GSview still cannot find Ghostscript, use this option to 
  953. set the full pathname to Ghostscript. If you wish to specify that Ghostscript 
  954. should look for its initialisation files in a different place, modify the -I 
  955. option. Only the Ghostscript EXE and include path may be specified - other 
  956. items will confuse GSview. 
  957.  
  958.  
  959. ΓòÉΓòÉΓòÉ 11.2. Ghostscript Version ΓòÉΓòÉΓòÉ
  960.  
  961. GSview is best used with Ghostscript version 3.53 or later. 
  962.  
  963. The default is Ghostscript 3.51 or later. 
  964.  
  965. See Common Problems for a description of what happens if you set the 
  966. Ghostscript Version to the wrong setting. 
  967.  
  968.  
  969. ΓòÉΓòÉΓòÉ 11.3. Draw Method ΓòÉΓòÉΓòÉ
  970.  
  971. A number of buggy display drivers have been written for OS/2. Many of these 
  972. have a non-functional GpiDrawBits() API. The default Draw Method is to use 
  973. GpiDrawBits() for most displays, and a slower double buffering method using 
  974. WinDrawBitmap for VGA (4bit/pixel) displays. 
  975.  
  976. If your display has problems drawing the bitmap (usually seen during scrolling) 
  977. or a SYS3175 (memory access violation) occurs in the display driver, then try 
  978. explicitly using the GpiDrawBits or WinDrawBitmap method. 
  979.  
  980. If you have bugs in your display driver, please complain to the company that 
  981. wrote it. 
  982.  
  983.  
  984. ΓòÉΓòÉΓòÉ 11.4. Sounds ΓòÉΓòÉΓòÉ
  985.  
  986. The Sounds option assigns sounds to various events. For each event the sound 
  987. can be set to None, a Speaker Beep or a Wave file. 
  988.  
  989. You must have a sound driver loaded before using Wave files. Wave file sounds 
  990. are not available under MS-Windows 3.0. 
  991.  
  992. The events are: 
  993.  
  994. Output Page: the PostScript showpage operator was executed. 
  995.  
  996. No Page: an invalid page was selected. For example, pressing Prev while on the 
  997. first page of a document with DSC comments. 
  998.  
  999. No Number: a command required page numbering and the document did not have page 
  1000. numbering. For example, pressing Goto Page when viewing a document without DSC 
  1001. comments. 
  1002.  
  1003. Not Open:  a command required a document to be open and this was not the case. 
  1004. For example, pressing Goto Page when no document is open. 
  1005.  
  1006. Error: many types of errors. 
  1007.  
  1008. Timeout: no response from Ghostscript within a timeout period. For example, 
  1009. display snowflak.ps on a PC with a 286-12 CPU. 
  1010.  
  1011. Start: GSview opened. 
  1012.  
  1013. Exit: GSview closed. 
  1014.  
  1015. The defaults are for No Page and Error to be a Speaker Beep and all other 
  1016. events to be None. 
  1017.  
  1018.  
  1019. ΓòÉΓòÉΓòÉ 11.5. Units ΓòÉΓòÉΓòÉ
  1020.  
  1021. The Units option sets the units used to display the cursor location on the 
  1022. status bar.  Available units are PostScript points (pt = 1/72"), millimetres 
  1023. (mm) and inches (in). The default is pt. 
  1024.  
  1025.  
  1026. ΓòÉΓòÉΓòÉ 11.6. Save Settings ΓòÉΓòÉΓòÉ
  1027.  
  1028.   The Save Settings Now option saves the GSview window position, window size, 
  1029. last used printer, last directory, Sounds, Units, Save Last Directory, User 
  1030. Defined, Ghostscript Command, Button Bar, Fit Window To Page, Quick Open, Auto 
  1031. Redisplay, EPS Clip, EPS Warn, Ignore DSC, Show Bounding Box, Depth, 
  1032. Orientation, Media, Resolution and Zoom Resolution options to the 
  1033. initialisation file gvpm.ini in the OS/2 system directory. GSview reads this 
  1034. file during startup. 
  1035.  
  1036. When the Save Settings on Exit option is checked, GSview will automatically 
  1037. save the above settings when you quit GSview. 
  1038.  
  1039.  
  1040. ΓòÉΓòÉΓòÉ 11.7. Safer ΓòÉΓòÉΓòÉ
  1041.  
  1042. When the Safer option is checked, GSview will give Ghostscript the -dSAFER 
  1043. flag, which disables the deletefile and renamefile operators, and the ability 
  1044. to open files in any mode other than read-only. This is the default. 
  1045.  
  1046. When the Safer option is unchecked Ghostscript can change files. 
  1047.  
  1048.  
  1049. ΓòÉΓòÉΓòÉ 11.8. Save Last Directory ΓòÉΓòÉΓòÉ
  1050.  
  1051. When the Save Last Directory option is checked, GSview will save the current 
  1052. directory when you quit GSview.  When GSview is started next, this will be made 
  1053. the current directory. This is the default. 
  1054.  
  1055. When Save Last Directory option is unchecked, the current directory when GSview 
  1056. is started will be the directory where GSview is located, or the working 
  1057. directory specified by the Program Manager. 
  1058.  
  1059.  
  1060. ΓòÉΓòÉΓòÉ 11.9. Button Bar ΓòÉΓòÉΓòÉ
  1061.  
  1062.  When the Button Bar option is checked, GSview will display a Button Bar down 
  1063. the left side of the window.  This is the default. The Button Bar contains the 
  1064. following items in order from top to bottom: 
  1065.  
  1066. File | Open 
  1067.  
  1068. File | Print 
  1069.  
  1070. File | Info 
  1071.  
  1072. Help | Contents 
  1073.  
  1074. View | Goto Page 
  1075.  
  1076. View | Next Page 
  1077.  
  1078. View | Previous Page 
  1079.  
  1080. Go forward 5 pages 
  1081.  
  1082. Go back 5 pages 
  1083.  
  1084. Increase resolution by 1.2 
  1085.  
  1086. Decrease resolution by 1/1.2 
  1087.  
  1088. Edit | Find 
  1089.  
  1090. Edit | Find Next 
  1091.  
  1092. If using the increase/decrease resolution buttons, Auto Redisplay should be 
  1093. set.  Instead of using these buttons, it is also possible to use the Media | 
  1094. Resolution command. When the Button Bar option is unchecked, GSview will not 
  1095. display the Button Bar. 
  1096.  
  1097.  
  1098. ΓòÉΓòÉΓòÉ 11.10. Fit Window To Page ΓòÉΓòÉΓòÉ
  1099.  
  1100. When the Fit Window To Page option is checked, GSview will shrink the window 
  1101. size so that it is no larger than the page being displayed.  This is the 
  1102. default. 
  1103.  
  1104. If Fit Window To Page is unchecked, GSview will not resize the window and areas 
  1105. outside the page will be drawn in light grey. This is useful if you do not wish 
  1106. the window to shrink when looking at pages at low resolution. 
  1107.  
  1108.  
  1109. ΓòÉΓòÉΓòÉ 11.11. Quick Open ΓòÉΓòÉΓòÉ
  1110.  
  1111. When the Quick Open option is checked, GSview will not reload Ghostscript 
  1112. before every document, making opening of documents quicker. 
  1113.  
  1114. GSview tries to preserve the Ghostscript state between documents, but a 
  1115. document may still leave the Ghostscript interpreter in an unusual state or 
  1116. cause an error.  If an error occurs, Ghostscript will close. Error messages are 
  1117. displayed in the Ghostscript window. Select Redisplay to reopen the document. 
  1118.  
  1119. If Quick Open is unchecked, GSview will close Ghostscript and restart it before 
  1120. each new document or whenever the page orientation, resolution or size is 
  1121. changed. 
  1122.  
  1123.  
  1124. ΓòÉΓòÉΓòÉ 11.12. Auto Redisplay ΓòÉΓòÉΓòÉ
  1125.  
  1126. When the Auto Redisplay option is checked, GSview will redisplay DSC documents 
  1127. when the Orientation, Resolution, Depth or Media are changed. This is the 
  1128. default. 
  1129.  
  1130. If Auto Redisplay is unchecked, the View | Redisplay command must be used to 
  1131. redisplay a document after changing the Orientation, Resolution, Depth or 
  1132. Media. 
  1133.  
  1134.  
  1135. ΓòÉΓòÉΓòÉ 11.13. EPS Clip ΓòÉΓòÉΓòÉ
  1136.  
  1137. When the EPS Clip option is checked, GSview will clip the display bitmap to the 
  1138. bounding box of an EPS file instead of using the page size specified on the 
  1139. Media menu.  This is useful when adding a bitmap preview to an EPS file. 
  1140.  
  1141. If EPS Clip is unchecked, GSview will use the page size specified on the Media 
  1142. menu for EPS files.  This is the default. 
  1143.  
  1144. EPS Clip does not alter the original document, it only affects how much of the 
  1145. document is displayed by GSview. EPS Clip will only work in Portrait 
  1146. orientation. 
  1147.  
  1148. See also Clipboard | Add EPS Preview 
  1149.  
  1150.  
  1151. ΓòÉΓòÉΓòÉ 11.14. EPS Warn ΓòÉΓòÉΓòÉ
  1152.  
  1153. When the EPS Warn option is checked, GSview will write a prolog to Ghostscript 
  1154. when each file is opened.  This prolog will produce warning messages in the 
  1155. Ghostscript text window if any PostScript operators that should not be used in 
  1156. EPS files are used.  An example warning message is: 
  1157.  
  1158.  Warning: EPS files must not use /initgraphics
  1159.  
  1160. EPS Warn is not infallible.  It is possible to access restricted operators 
  1161. without EPS Warn producing a warning. 
  1162.  
  1163. The default for EPS Warn is unchecked. 
  1164.  
  1165. See also PS to EPS. 
  1166.  
  1167.  
  1168. ΓòÉΓòÉΓòÉ 11.15. Ignore DSC ΓòÉΓòÉΓòÉ
  1169.  
  1170. Some documents incorrectly claim to conform to the Adobe Document Structuring 
  1171. Conventions.  Attempting to display one of these bogus documents will probably 
  1172. leave GSview horribly confused and unable to display the document.  If Ignore 
  1173. DSC is checked, GSview will treat the document as if it does not contain DSC 
  1174. comments and will only display the pages in the original order. 
  1175.  
  1176. The default for Ignore DSC is unchecked. 
  1177.  
  1178.  
  1179. ΓòÉΓòÉΓòÉ 11.16. Show Bounding Box ΓòÉΓòÉΓòÉ
  1180.  
  1181. Selecting this option causes a dashed rectangle to drawn over the image, 
  1182. showing the location of the bounding box. This bounding box is only drawn on 
  1183. the display, and does not affect printer output. The bounding box will only be 
  1184. shown for DSC documents (non conforming documents don't have a bounding box). 
  1185.  
  1186. The default for Show Bounding Box is unchecked. 
  1187.  
  1188.  
  1189. ΓòÉΓòÉΓòÉ 12. Page Orientation ΓòÉΓòÉΓòÉ
  1190.  
  1191.    The Portrait, Landscape, Upside-down and Seascape (reverse Landscape) 
  1192. commands on the Orientation Menu select the page orientation used by the 
  1193. display. Landscape implies a clockwise rotation of the paper by 90 degrees. 
  1194. Seascape implies an anti-clockwise rotation of the paper by 90 degrees. These 
  1195. orientation options only affect the display and do not affect the print 
  1196. commands. If a DSC page orientation comment is found, the orientation will be 
  1197. selected automatically. 
  1198.  
  1199. When the Swap Landscape option is checked, GSview swaps the meaning of 
  1200. Landscape and Seascape. Most of the Landscape documents that I have encountered 
  1201. require a 90 clockwise rotation of the paper to view. However, there is no 
  1202. standard and some documents need to be rotated the other way. The Swap 
  1203. Landscape button allows GSview to automatically rotate the document the right 
  1204. way in response to the %%Orientation comment in the PostScript file. 
  1205.  
  1206. See also Page Size and Display Resolution. 
  1207.  
  1208.  
  1209. ΓòÉΓòÉΓòÉ 13. Page Size and Display Resolution ΓòÉΓòÉΓòÉ
  1210.  
  1211.    The Resolution command on the Media menu selects the display resolution in 
  1212. dots per inch. The default for a VGA display is 96 dots per inch. 
  1213.  
  1214. For DSC conforming files, pressing the right mouse button will zoom into the 
  1215. page at what is usually printer resolution. Pressing the right mouse button a 
  1216. second time will zoom back out to normal display resolution. The Zoom 
  1217. Resolution command on the Media menu sets the zoom resolution in dots per inch. 
  1218.  
  1219. The Depth sub menu on the Media menu selects the display depth in bits per 
  1220. pixels. 
  1221.  
  1222. The Media menu also allows selection of page size. Available page sizes are: 
  1223.  
  1224.  Letter          8.5 x 11   inch
  1225.  Tabloid        11   x 17   inch
  1226.  Ledger         17   x 11   inch
  1227.  Legal           8.5 x 14   inch
  1228.  Statement       5.5 x  8.5 inch
  1229.  Executive       7.5 x 10   inch
  1230.  A3              297 x 420  mm
  1231.  A4              210 x 297  mm
  1232.  A5              148 x 210  mm
  1233.  B4              257 x 364  mm
  1234.  B5              182 x 257  mm
  1235.  Folio           8.5 x 13   inch
  1236.  Quarto          8.5 x 10.8 inch
  1237.  10x14          10   x 14   inch
  1238.  
  1239. A user defined size can be specified in PostScript points (1/72 inch) with the 
  1240. User Defined command.  A size of 480x360 points at 96 dpi will give an image 
  1241. size of 640x480 pixels. 
  1242.  
  1243. If a DSC media comment is found, the page type will be selected automatically. 
  1244. If the media specification is not one of the above page types, the User Defined 
  1245. size will be set. 
  1246.  
  1247.  
  1248. ΓòÉΓòÉΓòÉ 14. Keys ΓòÉΓòÉΓòÉ
  1249.  
  1250. Following are the key assignments for GSview. 
  1251.  
  1252. O, o  Open and display a file.  (File | Open) 
  1253.  
  1254. C, c  Close file.  (File | Close) 
  1255.  
  1256. N, n, +  Next Page.  (View | Next Page) 
  1257.  
  1258. V, v, -  Previous Page.  (View | Previous Page) 
  1259.  
  1260. G, g  Goto Page.  (View | Goto Page) 
  1261.  
  1262. I, i  File information.  (File | Info) 
  1263.  
  1264. R, r  Redisplay page.  (View | Redisplay) 
  1265.  
  1266. S, s  Select file: open but don't display.  (File | Select File) 
  1267.  
  1268. A, a  Save As. (File | Save As) 
  1269.  
  1270. P, p  Print all or some pages to a printer.  (File | Print) 
  1271.  
  1272. F, f  Print all or some pages to a File.  (File | Print To File) 
  1273.  
  1274. E, e  Extract some pages to another File.  (File | Extract) 
  1275.  
  1276. F1  Help.  (Help | Contents) 
  1277.  
  1278. Ctrl+C, Insert  Copy displayed bitmap to clipboard.  (Edit | Copy) 
  1279.  
  1280. Arrow Keys  Scroll by 16 pixels. 
  1281.  
  1282. Ctrl+Left  Scroll left one screen. 
  1283.  
  1284. Ctrl+Right  Scroll right one screen. 
  1285.  
  1286. Ctrl+Page Up  Scroll left one screen. 
  1287.  
  1288. Ctrl+Page Down  Scroll right one screen. 
  1289.  
  1290. Page Up  Scroll up one screen (window height). 
  1291.  
  1292. Page Down  Scroll down one screen. 
  1293.  
  1294. Home  Scroll to top of page. 
  1295.  
  1296. End  Scroll to bottom of page. 
  1297.  
  1298.  
  1299. ΓòÉΓòÉΓòÉ 15. Command line options ΓòÉΓòÉΓòÉ
  1300.  
  1301. Usage: 
  1302.  
  1303.  gvpm [/D] filename
  1304.  gvpm [/D] /F filename
  1305.  gvpm [/D] /P filename
  1306.  
  1307. To start GSview and display filename.ps use: 
  1308.  
  1309.  gvpm filename.ps
  1310.  
  1311. To start GSview and print filename.ps using Ghostscript (File | Print) use: 
  1312.  
  1313.  gvpm /P filename.ps
  1314.  
  1315. To start GSview and print filename.ps to a file using Ghostscript (File | Print 
  1316. To File) use: 
  1317.  
  1318.  gvpm /F filename.ps
  1319.  
  1320. To start GSview in debug mode use: 
  1321.  
  1322.  gvpm /D
  1323.  
  1324. In debug mode GSview will not remove its temporary files. This is to allow 
  1325. inspection of these files after GSview has finished. 
  1326.  
  1327. GSview ignores the case of option: /p is the same as /P. 
  1328.  
  1329.  
  1330. ΓòÉΓòÉΓòÉ 16. World Wide Web ΓòÉΓòÉΓòÉ
  1331.  
  1332.  The World Wide Web home page for Ghostscript, Ghostview and GSview is at 
  1333.  
  1334.  http://www.cs.wisc.edu/~ghost/index.html
  1335.  
  1336. GSview can be used as a PostScript file viewer for several OS/2 and MS-Windows 
  1337. Web browsers.  See the GSview home page for details. 
  1338.  
  1339.  
  1340. ΓòÉΓòÉΓòÉ 17. Copyright ΓòÉΓòÉΓòÉ
  1341.  
  1342. The About menu item shows the GSview copyright message and GSview version 
  1343. number. 
  1344.  
  1345.  GVPM.EXE - A Ghostscript graphical interface
  1346.  Copyright (C) 1993-1996, Russell Lang.  All rights reserved.
  1347.  Portions Copyright (C) 1994, Timothy O. Theisen.  All rights reserved.
  1348.  
  1349. This file is part of GSview. 
  1350.  
  1351. This program is distributed with NO WARRANTY OF ANY KIND.  No author or 
  1352. distributor accepts any responsibility for the consequences of using it, or for 
  1353. whether it serves any particular purpose or works at all, unless he or she says 
  1354. so in writing.  Refer to the GSview Free Public Licence (the "Licence") for 
  1355. full details. 
  1356.  
  1357. Every copy of GSview must include a copy of the Licence, normally in a plain 
  1358. ASCII text file named LICENCE.  The Licence grants you the right to copy, 
  1359. modify and redistribute GSview, but only under certain conditions described in 
  1360. the Licence.  Among other things, the Licence requires that the copyright 
  1361. notice and this notice be preserved on all copies. 
  1362.  
  1363.     Author: Russell Lang
  1364.   Internet: rjl@aladdin.com
  1365.  
  1366.  
  1367. ΓòÉΓòÉΓòÉ 18. Common Problems ΓòÉΓòÉΓòÉ
  1368.  
  1369.  Problem: Can't run gsos2... 
  1370.  
  1371. GSview requires OS/2 Ghostscript (gsos2.exe). This error message occurs if you 
  1372. don't have OS/2 Ghostscript, or if GSview can't find OS/2 Ghostscript. 
  1373.  
  1374. From the GSview menu select Options | Ghostscript Command and enter the correct 
  1375. executable path and include path for Ghostscript. For example: 
  1376.  
  1377.  c:\gs\gsos2.exe -Ic:\gs;c:\gs\fonts;c:\psfonts
  1378.  
  1379. You must set the include path for Ghostscript using either the -I command or 
  1380. the GS_LIB environment variable. 
  1381.  
  1382. If you can't get GSview to run Ghostscript correctly, make sure you can run 
  1383. Ghostscript on its own. 
  1384.  
  1385. Problem: Ghostscript starts and then immediately exits with error code 1. 
  1386.  
  1387. Ghostscript probably couldn't find its initialisation files. Set the 
  1388. Ghostscript include path by adding -Idirectory to the command in Options | 
  1389. Ghostscript Command, where directory includes the name of the directory that 
  1390. contains the Ghostscript initialisation files, Alternatively, set the 
  1391. environment variable GS_LIB. 
  1392.  
  1393. Read the file use.doc that comes with Ghostscript. 
  1394.  
  1395. If you can't get GSview to run Ghostscript correctly, make sure you can run 
  1396. Ghostscript on its own. 
  1397.  
  1398. Problem: GSview says that a multipage PostScript file produced by MS-Windows 
  1399. contains 0 pages and will only show the first page. 
  1400.  
  1401. This is because the document does not have correct DSC comments. From the 
  1402. Control Panel, select Printers, Options..., then in the Print to group box 
  1403. click on the Printer radio button.  You cannot use the Print To Encapsulated 
  1404. PostScript File for printing multipage files.  The correct method is to connect 
  1405. the printer to FILE:. In addition, from the Control Panel select Printers, 
  1406. Options..., Advanced and then check Conform to Adobe Document Structuring 
  1407. Convention. 
  1408.  
  1409. The DSC comment %%Pages: 0 means that the document does not produce any pages. 
  1410. That is, the PostScript showpage operator is not used. If you find a PostScript 
  1411. document that has multiple pages and contains the %%Pages: 0 comment, change 
  1412. the first line from %!PS-Adobe- to %!. GSview will then ignore the DSC comments 
  1413. and allow you to view all pages, but only in the original order.  Complain to 
  1414. the author of the program that produced that PostScript file. 
  1415.  
  1416. Some PostScript printer drivers include code that is specific to a particular 
  1417. printer.  The PostScript output from these drivers may be unportable and may 
  1418. not display in GSview.  If you are having this problem, try using a reasonably 
  1419. generic PostScript driver such as Apple LaserWriter II NT for PostScript level 
  1420. 2 printers, or Apple LaserWriter Plus for PostScript level 1 printers. 
  1421.  
  1422. Problem: PostScript files produced by MS-Windows start with a Control-D. 
  1423.  
  1424. Since this occurs even when the PostScript printer Conform to Document 
  1425. Structuring Convention checkbox is checked, this must be considered a bug in 
  1426. the MS-Windows PostScript printer driver. The bug fix is documented in the 
  1427. MS-Windows PRINTERS.WRI file. Edit the win.ini file and search for the 
  1428. PostScript printer section. There may be more than one.  In each of these 
  1429. sections add CTRLD=0 as shown below. 
  1430.  
  1431.  [Apple LaserWriter II NT,FILE]
  1432.  CTRLD=0
  1433.  
  1434. Problem: PostScript files produced by Word for Windows 6.0 cause a "Missing 
  1435. %%Pages comment" message box. 
  1436.  
  1437. Congratulations.  You have just found a mistake in the DSC comments when Word 
  1438. included an EPS file.  Word should have surrounded the included EPS file with 
  1439. the lines 
  1440.  
  1441.  %%BeginDocument: filename.eps
  1442.  %%EndDocument
  1443.  
  1444. Because Word didn't do this, GSview can't tell how many pages are in the 
  1445. document and where they are located. 
  1446.  
  1447. Please complain to Microsoft.  There is a problem in the EPSIMP.FLT filter 
  1448. version 2.01 which Microsoft needs to fix. 
  1449.  
  1450. In the interim, you have two solutions: 
  1451.  
  1452. 1. Select Options | Ignore DSC 
  1453.  
  1454. 2. Edit the PostScript file to correct the DSC comments. Search the PostScript 
  1455. file for all lines containing 
  1456.  
  1457.   %MSEPS Preamble
  1458.  
  1459. From each of these lines, search forward for the start of the included EPS file 
  1460. which should start with a line like 
  1461.  
  1462.  %%PS-Adobe-3.0 EPSF-3.0
  1463.  
  1464. Above these lines add the line 
  1465.  
  1466.  %%BeginDocument: AddedByHand
  1467.  
  1468. Then search for all lines containing 
  1469.  
  1470.  %MSEPS Trailer
  1471.  
  1472. Above these lines add the line 
  1473.  
  1474.  %%EndDocument
  1475.  
  1476. GSview should then be able to display the file correctly. 
  1477.  
  1478. Problem: Ghostscript always outputs to a printer instead of the GSview window. 
  1479.  
  1480. You must not use the GS_DEVICE environment variable. 
  1481.  
  1482.  
  1483. ΓòÉΓòÉΓòÉ 19. Whats new ΓòÉΓòÉΓòÉ
  1484.  
  1485.  ----------------------
  1486.  Version 1.4 1996-01-02
  1487.  ----------------------
  1488.  All:
  1489.   File was being opened twice if file was changed.
  1490.   Should be used with Aladdin Ghostscript 3.53.
  1491.  Win16:
  1492.   Prevented GPF when running out of memory.
  1493.   Reduced stack size and pipe buffer size to allow larger documents
  1494.   to be displayed.  If only numeric page labels are used, 500 page
  1495.   documents should be OK.
  1496.  PM:
  1497.   Requires emx 0.9b or later.
  1498.   PDF viewing was broken when "Configure Ghostscript" was added.
  1499.  
  1500.  ----------------------------
  1501.  Version 1.33 beta 1995-11-30
  1502.  ----------------------------
  1503.  All:
  1504.   Added PageOffset for printers.  See the Properties dialog box.
  1505.   Add 'Edit Properties' dialog box to allow user to add, edit or delete
  1506.   properties for a printer without having to hand edit the INI file.
  1507.  Win:
  1508.   Installation program now creates "GS Tools" program group and
  1509.   adds File Manager associations for .ps and .eps to the registry.
  1510.  
  1511.  ----------------------------
  1512.  Version 1.32 beta 1995-11-23
  1513.  ----------------------------
  1514.  All:
  1515.   Installation programs added.
  1516.  Win32s:
  1517.   Uses new gsv16spl.exe to write to the 16-bit spooler from Win32s.
  1518.  PM:
  1519.   Fixed printing of non DSC documents (was broken when printer
  1520.   dialog boxes were combined).
  1521.  
  1522.  ----------------------------
  1523.  Version 1.31 beta 1995-11-03
  1524.  ----------------------------
  1525.  This is an interim release, intended to fix some known problems
  1526.  and add a few new features, but does not include the full DLL
  1527.  implementation needed to work reliably under Windows 95/NT,
  1528.  or paper size handling using level 2 setpagedevice.
  1529.  It is intended for use with Aladdin Ghostscript 3.51.
  1530.  All:
  1531.   Still doesn't work with landscape PostScript that sets the
  1532.   clipping path.
  1533.   Combined printer dialog boxes.
  1534.   Allow user supplied preview file in creation of DOS EPS file for both
  1535.   GSview "Edit | Add EPS Preview | User Supplied Preview" and EPSTOOL.
  1536.   Added warning if EPS BoundingBox was entirely off the page.
  1537.   Replace label of "%%Pages: () 1" with page number.
  1538.   Changed "Ghostscript Command" into "Configure Ghostscript" which
  1539.   has separate "Ghostscript EXE" and "Ghostscript Include Path".
  1540.   Changed TIFF code to work on big-endian architectures, to allow
  1541.   EPSTOOL to run under Solaris.
  1542.   Directories src, gsgrab and epstool are now in ZIP files, since
  1543.   most people won't want them unzipped.
  1544.  PM:
  1545.   Uses print queues instead of writing to ports.
  1546.   It is now possible to use a Ghostscript path with embedded spaces.
  1547.   Allow user to specify drawing method GpiDrawBits or WinDrawBitmap
  1548.   to dodge display driver bugs.
  1549.   Recover when last directory is invalid (usually no floppy in drive).
  1550.  Win:
  1551.   Added Ghostscript 3.51 to "Options | Ghostscript Version".  Selecting
  1552.   GS 3.51 puts quotes around filenames in response files to allow embedded
  1553.   spaces.  This won't work with GS 3.33.
  1554.  Win32:
  1555.   Uses print queues under Win95 and WinNT.
  1556.  
  1557.  
  1558. ΓòÉΓòÉΓòÉ 20. Internals ΓòÉΓòÉΓòÉ
  1559.  
  1560. GSview starts Ghostscript for displaying using 
  1561.  
  1562.  gsos2 -dBitsPerPixel=x -dSAFER -rXDPIxYDPI -gWIDTHxHEIGHT -sGSVIEW=xxxx -
  1563.  
  1564. where xxxx is a string used to access a named shareable memory block, two 
  1565. semaphores and a queue.  These are listed in gdevpm.h. The shareable memory 
  1566. block contains a bitmap in BMP format. The SYNC semaphore is not used (it is 
  1567. used by gspmdrv.exe instead). The NEXT semaphore is used when waiting at each 
  1568. showpage. The MUTEX is used to sychronise access to the bitmap. The QUEUE is 
  1569. used by Ghostscript to notify GSview about the following significant events: 
  1570. 1. Starting to draw into bitmap, 2. Synchronise (redraw) page, 3. showpage 
  1571. (redraw page), 4. Ghostscript is closing, 5. Ghostscript fatal error, 6. 
  1572. Palette in bitmap has changed, 7. "-1 false .outputpage" is executed, 8. "-2 
  1573. false .outputpage" is executed. PostScript code is piped to the Ghostscript 
  1574. stdin. Ghostscript stdout goes to a window. 
  1575.  
  1576. GSview uses temporary files of the name gvXXXXXX in the directory given by the 
  1577. TEMP environment variable. 
  1578.  
  1579. GSview starts Ghostscript for printing using 
  1580.  
  1581.  gsos2 @optfile
  1582.  
  1583. optfile contains 
  1584.  
  1585.  -dNOPAUSE
  1586.  -dSAFER
  1587.  -sDEVICE=devname
  1588.  -rXDPIxYDPI
  1589.  -gWIDTHxHEIGHT
  1590.  -sOutputFile=outfilename
  1591.  filename.ps
  1592.  quit.ps
  1593.  
  1594.